<?php
if(version_compare(PHP_VERSION,'8.0.0')==-1) die('php版本过低，请不要低于8.0.0，当前版本：'.PHP_VERSION);
require 'vendor/autoload.php';

define('ROOT',__DIR__);
define('DS',DIRECTORY_SEPARATOR);
define('CUBOX','cubox');
define('APP','app');
define('RUNTIME','runtime');
define('CONFIG','config');
define('CUBOX_DEBUG',true);
define('STAETTIME',microtime(true));

//if (!defined('CUBOXBOOT') || CUBOXBOOT){ //安装完成后可删除本行 1
    define('UPLOAD','upload');
    define('WEBPACK','webpack');

    if (!defined('RUN')){define('RUN',ROOT);}
    require ROOT.DS.CUBOX.DS."Cubox.php";  
    \cubox\Cubox::init();
//}